<#include "../common/header.html">

<body class="skin-blue fixed sidebar-mini" style="height: auto; min-height: 100%;">
<div class="wrapper" style="height: auto; min-height: 100%;">
    <#assign page_tab="goods">
    <#include "goods_menu.html">

    <!--右侧内容 开始-->
    <div id="admin_right" class="content-wrapper">
        <div class="breadcrumbs" id="breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="home-icon fa fa-home"></i>
                    <a href="#">商品</a>
                </li>
                <li>
                    <a href="#">商品管理</a>
                </li>
                <li class="active">商品列表</li>
            </ul>
        </div>

        <div class="content">
            <table class="table list-table">
                <colgroup>
                    <col width="30px" />
                    <col />
                    <col width="200px" />
                    <col width="80px" />
                    <col width="70px" />
                    <col width="85px" />
                    <col width="60px" />
                    <col width="110px" />
                </colgroup>
                <caption>
                    <a class="btn btn-default" href='/admin/goods/goods_add'>
                        <i class="fa fa-plus"></i>添加商品
                    </a>

                    <a class="btn btn-default" onclick="selectAll('id[]')">
                        <i class="fa fa-check"></i>全选
                    </a>

                    <div class="btn-group">
                        <button type="button" class="btn btn-default"><i class="fa fa-cogs"></i>批量操作</button>
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <span class="caret"></span>
                            <span class="sr-only"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="javascript:void(0);" onclick="delModel({'name':'id[]','link':'/goods/goods_stats/type/up','form':'goodsForm','msg':'选择商品上架？'});">上架</a></li>
                            <li><a href="javascript:void(0);" onclick="delModel({'name':'id[]','link':'/goods/goods_stats/type/down','form':'goodsForm','msg':'选择商品下架？'});">下架</a></li>
                            <li><a href="javascript:void(0);" onclick="delModel({'name':'id[]','link':'/goods/goods_stats/type/check','form':'goodsForm','msg':'选择商品待审？'});">待审</a></li>
                            <li><a href="javascript:void(0);" onclick="delModel({'name':'id[]','link':'/goods/goods_del','form':'goodsForm'})">删除</a></li>
                            <li class="divider"></li>
                            <li><a href="javascript:void(0);" onclick="goodsCommend()">商品推荐</a></li>
                            <li><a href="javascript:void(0);" onclick="goodsShare()">商品共享</a></li>
                            <li class="divider"></li>
                            <li><a href="/goods/goods_report/?search=" target="_blank">导出Excel</a></li>
                        </ul>
                    </div>

                    <a class="btn btn-default" href="/goods/goods_recycle_list">
                        <i class="fa fa-trash"></i>回收站
                    </a>

                    <a class="btn btn-default" onclick="goodsSetting();">
                        <i class="fa fa-cogs"></i>批量设置
                    </a>

                    <a class="btn btn-default" href="javascript:;">
                        <i class="fa fa-search"></i>检索
                    </a>
                </caption>
                <thead>
                <tr>
                    <th></th>
                    <th>商品名称</th>
                    <th>分类</th>
                    <th>销售价</th>
                    <th>库存</th>
                    <th>状态</th>
                    <th>排序</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <form action="" method="post" name="goodsForm">
                    <@fly_goodspage>
                    <#list goods_page.list as list>
                    <tr>
                        <td><input name="id[]" type="checkbox" value="376" /></td>
                        <td>
                            <img src='/pic/thumb/img/d8X3Bes3bf2fF4k6L2zdIcwfM7T5c3v8MaDdU6veM5D1Y8veN6T7g81dN3GcQ945ODhuYWZiZGI1YmIuanBnL3cvNTAvaC81MAO0O0OO0O0O' class='pull-left img-thumbnail' />
                            <a href="javascript:jumpUrl('0','/products-376.html')" title="${list.name!}">${list.name!}</a>
                        </td>
                        <td>
                            [美体护肤]
                        </td>
                        <td><a href="javascript:quickEdit(376,'price');"  title="点击更新价格" id="priceText376">59.00</a></td>
                        <td><a href="javascript:quickEdit(376,'store');"  title="点击更新库存" id="storeText376">1000</a></td>
                        <td>
                            <select class="form-control input-sm" onchange="changeIsDel(376,this)">
                                <option value="up" selected>上架</option>
                                <option value="down" >下架</option>
                                <option value="check" >待审</option>
                            </select>
                        </td>
                        <td><input type="text" class="form-control input-sm" value="99" onchange="changeSort(376,this);" /></td>
                        <td>
                            <a href="/admin/goods/goods_edit/${list.id!}"><i class='operator fa fa-edit'></i></a>
                            <a data-title="${list.name!}" data-id="${list.id!}"  class="goods-delete"><i class='operator fa fa-close'></i></a>
                        </td>
                    </tr>
                    </#list>
                    </@fly_goodspage>
                </form>
                </tbody>
            </table>
        </div>
        <div class="text-center" style='clear:both'><ul class='pagination'>${goods_page.pageNumHtml}</ul></div>

    </div>
    <!--右侧内容 结束-->
</div>
</body>
</html>